package com.sophia.menuorder.model;

import android.provider.BaseColumns;

public final class MenuOrderContract {

	public static final String DBNAME = "menuorder.db";
	
	private MenuOrderContract(){}
	
	public static abstract class User implements BaseColumns {
		public static final String TABLE_NAME = "user";
		public static final String USER_NAME = "uname";
		public static final String USER_PWD = "upwd";
		public static final String USER_TYPE = "utype";
	}
	
	public static abstract class Dish implements BaseColumns {
		public static final String TABLE_NAME = "dish";
		public static final String DISH_NAME = "dish_name";
		public static final String DISH_TYPE_ID = "dish_type_id";
		public static final String DISH_PRICE = "price";
	}
	
	public static abstract class DishType implements BaseColumns {
		public static final String TABLE_NAME = "dish_type";
		public static final String TYPE_NAME = "type_name";
	}

	public static abstract class UserType implements BaseColumns {
		public static final String TABLE_NAME = "user_type";
		public static final String TYPE_NAME = "type_name";
	}
	
	public static abstract class Order implements BaseColumns {
		public static final String TABLE_NAME = "menu_order";
		public static final String USER_ID = "user_id";
		public static final String TOTAL_PRICE = "total_price";
		public static final String ORDER_TIME = "order_time";
	}
	
	public static abstract class OrderItem implements BaseColumns {
		public static final String TABLE_NAME = "order_item";
		public static final String ORDER_ID = "order_id";
		public static final String DISH_ID = "dish_id";
	}
}
